<?php

namespace app\factory\model;

/**
 * ClassName:请求协议类
 * @author leijunxiang
 * @time 2024/8/25
 * @auditor
 */
class RequestAgreement
{
    const MODEL_REQUEST_AGREEMENT = "RequestAgreement";
    //消息key
    protected $msgKey;
    //对象key
    protected $objKey;
    //用户Token
    protected $token;
    //用户ID
    protected $userId;
    //软件ID
    protected $appId;
    //IMEI
    protected $imei;
    //OAID
    protected $oaid;
    //内容信息对象
    protected $content;


    /**
     * jsonToObj(数据)
     * @param $data
     * @return void
     */
    public function jsonToObj($data)
    {
        if ($data) {
            foreach ($data as $key => $value) {
                if (property_exists($this, $key)) {
                    $this->$key = $value;
                }
            }
        }
    }


    /**
     * @return mixed
     */
    public function getMsgKey()
    {
        return $this->msgKey;
    }

    /**
     * @param mixed $msgKey
     */
    public function setMsgKey($msgKey)
    {
        $this->msgKey = $msgKey;
    }

    /**
     * @return mixed
     */
    public function getObjKey()
    {
        return $this->objKey;
    }

    /**
     * @param mixed $objKey
     */
    public function setObjKey($objKey)
    {
        $this->objKey = $objKey;
    }

    /**
     * @return mixed
     */
    public function getToken()
    {
        return $this->token;
    }

    /**
     * @param mixed $token
     */
    public function setToken($token)
    {
        $this->token = $token;
    }

    /**
     * @return mixed
     */
    public function getUserId()
    {
        return $this->userId;
    }

    /**
     * @param mixed $userId
     */
    public function setUserId($userId)
    {
        $this->userId = $userId;
    }

    /**
     * @return mixed
     */
    public function getAppId()
    {
        return $this->appId;
    }

    /**
     * @param mixed $appId
     */
    public function setAppId($appId)
    {
        $this->appId = $appId;
    }

    /**
     * @return mixed
     */
    public function getImei()
    {
        return $this->imei;
    }

    /**
     * @param mixed $imei
     */
    public function setImei($imei)
    {
        $this->imei = $imei;
    }

    /**
     * @return mixed
     */
    public function getOaid()
    {
        return $this->oaid;
    }

    /**
     * @param mixed $oaid
     */
    public function setOaid($oaid)
    {
        $this->oaid = $oaid;
    }

    /**
     * @return mixed
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * @param mixed $content
     */
    public function setContent($content)
    {
        $this->content = $content;
    }


}